package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Answer;
import cn.wolfcode.luowowo.article.query.AnswerQuery;
import com.github.pagehelper.PageInfo;

import java.util.HashMap;
import java.util.List;

public interface IAnswerService {
    int deleteByPrimaryKey(Long id);

    Answer selectByPrimaryKey(Long id);

    List<Answer> selectAll();

    Long saveOrUpdate(Answer answer);

    PageInfo<Answer> query(AnswerQuery qo);

    List<Answer> queryByViewTop3(Long id);

    void addThumbup(Long answerId, int num);

    List<HashMap<String,Object>> replynumTop();

    List<HashMap<String,Object>> thumbsupnumTop();
}
